<template>
	<view class="wrap">
		<view class="main">
			<view class="titbox">
				<view class="tit">
					{{'是否确认全部赠送？'}}
				</view>
			</view>
			<view class="btn_body">
				<button class="btn_cell cancel"  @click.stop="hideFun()">
					取消
				</button>
				<button class="btn_cell confirm" open-type="share" @click="shareGift()">
					确定
				</button>
			</view>
		</view>
	</view>
</template>

<script>

	export default {
		// name:"sharePopup",
		// props:{
		// 	content:{
		// 		default:'',
		// 		typeof:String
		// 	}
		// },
		methods:{
			hideFun(){
				this.$emit('hidePopup',false)
			},
			shareGift(){
				this.hideFun()
				this.$emit('shareGift')
			}
		}
	}
</script>

<style lang="scss">
button{
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
button::after{
	border: 0;
}
.wrap{
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	transition: all 0.3 ease-in; 
	.main{
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		width: 85%;
		background-color: #fff;
		border-radius: 24rpx;
		overflow: hidden;
		.titbox{
			padding: 46rpx;
			border-bottom: 1rpx solid #f2f2f2;
			.tit{
				text-align: center;
				color: #7f7f7f;
				font-size: 32rpx;
			}
		}
		.btn_body{
			display: flex;
			.btn_cell{
				width: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 32rpx;
				font-weight: bold;
				height: 110rpx;
				box-sizing: border-box;
			}
			.cancel{
				border-right: 1rpx solid #f2f2f2;
			}
			.confirm{
				color: #576b95;
			}
		}
	}
}
</style>